package com.neusoft.neu24.nep;

import com.neusoft.neu24.nep.cfg.CustomLoadBalancerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
// 第三步
//  开启远程调用接口
@EnableFeignClients
// 开启RPC服务客户端
@EnableDiscoveryClient

@LoadBalancerClient(name = "rpc-service-provider", configuration = CustomLoadBalancerConfiguration.class)
public class NacosConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(NacosConsumerApp.class, args);
        System.out.println("Hello world!");
    }
}